package com.appwoo.txtws.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.Toast;
import com.appwoo.txtws.app.AppTabActivity;
import java.util.List;

public class SoftManagerForChildTabActivity extends AppTabActivity
{
  private RadioButton rbRecom;
  private RadioButton rbSetup;
  private RadioGroup rg;
  private TabHost tabHost;

  private void initActionBar()
  {
    hideBarHome();
    setBarTitle(getString(2131428203));
    setBarBackOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        SoftManagerForChildTabActivity.this.finish();
      }
    });
    setBarHomeBtnOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        if (RecomedForChildActivity.appDel.size() > 0)
        {
          Intent localIntent = new Intent("delData");
          SoftManagerForChildTabActivity.this.sendBroadcast(localIntent);
          return;
        }
        SoftManagerForChildTabActivity.this.alertMessage(SoftManagerForChildTabActivity.this.getString(2131428209));
      }
    });
  }

  private void initView()
  {
    this.rbSetup = ((RadioButton)findViewById(2131493270));
    this.rbRecom = ((RadioButton)findViewById(2131493271));
    this.rbSetup.setText(getString(2131428206));
    this.rbRecom.setText(getString(2131428207));
    this.tabHost = getTabHost();
    this.tabHost.addTab(this.tabHost.newTabSpec("tab1").setIndicator("").setContent(new Intent(this, SetupFromLocalActivity.class)));
    this.tabHost.addTab(this.tabHost.newTabSpec("tab2").setIndicator("").setContent(new Intent(this, RecomedForChildActivity.class)));
    this.rg = ((RadioGroup)findViewById(2131493012));
    this.rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()
    {
      public void onCheckedChanged(RadioGroup paramAnonymousRadioGroup, int paramAnonymousInt)
      {
        switch (paramAnonymousInt)
        {
        default:
          return;
        case 2131493270:
          SoftManagerForChildTabActivity.this.hideBarHome();
          SoftManagerForChildTabActivity.this.tabHost.setCurrentTabByTag("tab1");
          return;
        case 2131493271:
        }
        SoftManagerForChildTabActivity.this.showBarHomeBtn(Boolean.valueOf(true));
        SoftManagerForChildTabActivity.this.setBarHomeText(SoftManagerForChildTabActivity.this.getString(2131428208));
        SoftManagerForChildTabActivity.this.tabHost.setCurrentTabByTag("tab2");
      }
    });
    ((RadioButton)findViewById(2131493270)).setChecked(true);
  }

  protected void backKeyCallBack()
  {
    finish();
  }

  public void onBackPressed()
  {
    finish();
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903149);
    initActionBar();
    initView();
    String str = getIntent().getStringExtra("Toast");
    if ((str != null) && (!str.equals("")))
      Toast.makeText(this, str, 0).show();
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.activity.SoftManagerForChildTabActivity
 * JD-Core Version:    0.6.2
 */